﻿* {
    outline: none;
}

button, input[type="button"] {
    cursor: pointer;
    border-style: none;
    outline: none;
}

body {
    width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
}

header, section, footer {
    width: 100%;
    box-sizing: border-box;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    nav * {
        margin: 0 5px;
    }

    nav a:hover {
        text-decoration: underline;
    }

.m-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .m-header .rig {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .m-header .rig > div:nth-of-type(1) {
            display: flex;
            justify-content: center;
            align-items: center;
            border: 1px solid #8e8e8e;
            box-sizing: border-box;
            border-radius: 3px 0 0 3px;
            padding-left: 5px;
        }

#input-search {
    height: 30px;
    width: 250px;
    font-size: 0.8rem;
    padding: 0px 3px;
    border-style: none;
}

#btn-search {
    font-size: 1.2rem;
    height: 32px;
    width: 40px;
    border: 1px solid #c7c7c7;
    background: -webkit-gradient(linear,left top,left bottom,from(#fefefe),to(#e3e3e3));
    background: -moz-linear-gradient(top,#fefefe,#e3e3e3);
    background: -o-linear-gradient(top,#fefefe,#e3e3e3);
}

    #btn-search:hover {
        border-color: #C92945;
        background: #ED4461;
        color: white;
        border-color: red;
        background: -webkit-gradient(linear,left top,left bottom,from(#F64D6A),to(#E03C57));
    }

#top-shopcard {
    position: relative;
    padding: 10px 20px;
    width: 90px;
    box-sizing: unset;
    height: 17px;
    border-radius: 3px;
    background-color: #ec2d21;
    line-height: 17px;
    margin-left: 5px;
    color: white;
    cursor: default;
}

    #top-shopcard:hover .bylist {
        display: block;
    }

    #top-shopcard:hover {
        background-color: red;
    }

    #top-shopcard > * {
        color: white;
        font-size: 1rem;
    }

    #top-shopcard h3 {
        padding: 5px;
        font-weight: bold;
        max-width: 160px;
        overflow: hidden;
    }

    #top-shopcard:before {
        font-size: 1rem;
    }

    #top-shopcard .count {
        background-color: white;
        display: block;
        position: absolute;
        top: calc(50% - 9px);
        right: 18px;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        line-height: 18px;
        color: red;
        font-size: 0.7rem;
        text-align: center;
    }

    #top-shopcard .bylist {
        width: 350px;
        background-color: white;
        z-index: 8;
        position: absolute;
        top: 100%;
        right: 0;
        border: 1px solid red;
        box-shadow: 1px 1px 3px #ddd;
        padding-bottom: 80px;
        display: none;
    }


        #top-shopcard .bylist .list {
            width: 100%;
            max-height: 400px;
            overflow-y: scroll;
            /*overscroll-behavior-y: contain;*/
        }

        #top-shopcard .bylist .tj {
            margin-top: 5px;
            width: 100%;
            height: 80px;
            border-top: 1px solid #aaa;
            padding: 5px;
            position: absolute;
            bottom: 0;
            left: 0;
            background-color: white;
            box-sizing: border-box;
        }

            #top-shopcard .bylist .tj > div {
                text-align: right;
            }

                #top-shopcard .bylist .tj > div:nth-child(1) {
                    height: 30px;
                    line-height: 30px;
                }

                    #top-shopcard .bylist .tj > div:nth-child(1) span {
                        font-size: 0.9rem;
                    }

            #top-shopcard .bylist .tj .gojs {
                width: 150px;
                height: 40px;
                background-color: #ec2d21;
                color: white;
                font-weight: bold;
                font-size: 1rem;
            }

                #top-shopcard .bylist .tj .gojs:hover {
                    background-color: red;
                }

            #top-shopcard .bylist .tj .ct, #top-shopcard .bylist .tj .moy {
                font-size: 1.2rem;
                color: red;
                font-weight: bold;
            }

        #top-shopcard .bylist .item {
            height: 80px;
            width: 100%;
            border-bottom: 1px solid #ddd;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 10px;
            overflow-x: hidden;
            box-sizing: border-box;
        }

            #top-shopcard .bylist .item .lef {
                width: 50px;
                height: 50px;
            }

                #top-shopcard .bylist .item .lef img {
                    width: 100%;
                    height: 100%;
                }

            #top-shopcard .bylist .item .input-nud {
                width: 60px;
                height: 20px;
                position: relative;
                top: 2px;
            }

                #top-shopcard .bylist .item .input-nud button {
                    line-height: 20px;
                }

            #top-shopcard .bylist .item > * {
                flex-grow: 1;
            }

            #top-shopcard .bylist .item .mid {
                flex-grow: 2;
                padding-left: 5px;
                box-sizing: border-box;
            }

                #top-shopcard .bylist .item .mid h3 {
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    color: #333;
                    font-size: 0.9rem;
                }

                #top-shopcard .bylist .item .mid > div * {
                    font-size: 0.7rem;
                }

                #top-shopcard .bylist .item .mid .xj {
                    font-size: 1rem;
                    color: red;
                    position: relative;
                    top: 2px;
                }

.m-nav {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    z-index: 10;
    border-bottom: 5px solid red;
    box-sizing: border-box;
}

    .m-nav .red-blk {
        height: 40px;
        width: 250px;
        background: #ec2d2d;
        position: relative;
        z-index: 6;
        display: inline-block;
        cursor: pointer;
        box-sizing: border-box;
    }

        .m-nav .red-blk:hover .m-menu {
            height: 470px;
        }

        .m-nav .red-blk .m-menu {
            width: 100%;
            box-sizing: border-box;
            position: absolute;
            left: 0;
            top: 40px;
            background-color: white;
            border: 1px solid red;
            box-shadow: 1px 1px 3px #ccc;
            transition: height 0.6s;
            height: 0px;
            overflow: hidden;
        }

            .m-nav .red-blk .m-menu a:hover {
                text-decoration: underline;
                color: red;
            }

            .m-nav .red-blk .m-menu > * {
                border-top: 1px solid #ccc;
                padding-left: 5px;
                height: 65px;
                padding-top: 5px;
                overflow: hidden;
            }

                .m-nav .red-blk .m-menu > *:nth-child(1) {
                    border-top-style: none;
                }

            .m-nav .red-blk .m-menu dt > * {
                font-size: 0.9rem;
                font-weight: 600;
            }

            .m-nav .red-blk .m-menu dd {
                padding-left: 15px;
                margin-top: 5px;
            }

                .m-nav .red-blk .m-menu dd > * {
                    margin-left: 5px;
                    font-size: 0.8rem;
                }

        .m-nav .red-blk h2 {
            display: block;
            width: 100%;
            height: 100%;
            display: inline-flex;
            justify-content: space-around;
            align-items: center;
        }

            .m-nav .red-blk h2 > * {
                color: white;
                font-size: 1.1rem;
            }

    .m-nav > nav {
        display: inline-block;
        margin-left: 10px;
        flex-grow: 1;
    }

        .m-nav > nav > * {
            font-weight: bold;
            color: #333;
            font-size: 1rem;
            padding: 5px;
        }

            .m-nav > nav > *:hover {
                color: #ec2d2d;
                background-color: #f5f5f5;
                text-decoration: none;
            }


/*顶部路径导航*/
.path-navs {
    line-height: 30px;
    font-size: 0.8rem;
    color: #8e8e8e;
}

    .path-navs a:last-child {
        color: red;
    }

    .path-navs a:hover {
        text-decoration: underline;
    }

.toptitle {
    border: 1px solid #ccc;
    box-sizing: border-box;
    height: 40px;
    line-height: 40px;
    padding-left: 5px;
}

    .toptitle b{
        color:red;
        font-weight:bold;
        font-size:inherit;
    }

    .toptitle .big {
        font-weight: bold;
        font-size: 1rem;
        color: #222;
    }

    .toptitle .sm {
        font-size: 0.8rem;
        color: #6e6e6e;
    }

        .toptitle .sm .number {
            color: red;
        }
